package com.sam.im.heiqun.entities;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.orm.SugarRecord;

public class  ImMessage extends SugarRecord implements java.io.Serializable {
    @Override
    public String toString() {
        return "{" +
                "id=" + id +
                ", version=" + version +
                ", devType=" + devType +
                ", geoId=" + geoId +
//                ", msgId='" + msgId + '\'' +
                ", msgId=" + msgId +
                ", fromid=" + fromid +
//                ", fromname='" + fromname + '\'' +
                ", fromname=" + fromname +
                ", fromType=" + fromType +
                ", destid=" + destid +
//                ", content='" + content + '\'' +
                ", content=" + content +
                ", messageType=" + messageType +
                ", sendTime=" + sendTime +
                ", receiveTime=" + receiveTime +
                ", status=" + status +
                ", userVoiceTime=" + userVoiceTime +
//                ", userVoicePath='" + userVoicePath + '\'' +
                ", userVoicePath=" + userVoicePath +
//                ", userVoiceUrl='" + userVoiceUrl + '\'' +
                ", userVoiceUrl=" + userVoiceUrl +
//                ", fileUrl='" + fileUrl + '\'' +
                ", fileUrl=" + fileUrl +
//                ", filePath='" + filePath + '\'' +
                ", filePath=" + filePath +
//                ", imageIconUrl='" + imageIconUrl + '\'' +
                ", imageIconUrl=" + imageIconUrl +
//                ", uniqueness='" + uniqueness + '\'' +
                ", uniqueness=" + uniqueness +
                ", type=" + type +
                ", sendState=" + sendState +
//                ", content_fy='" + content_fy + '\'' +
                ", content_fy=" + content_fy +
//                ", isShowFY='" + isShowFY + '\'' +
                ", isShowFY=" + isShowFY +
//                ", isRead='" + isRead + '\'' +
                ", isRead=" + isRead +
//                ", isPayed='" + isPayed + '\'' +
                ", isPayed=" + isPayed +
//                ", isklopen='" + isklopen + '\'' +
                ", isklopen=" + isklopen +
                '}';
    }

    @SerializedName("id")
    @Expose
    private Long id;//
    @SerializedName("version")
    @Expose
    private Integer version;//
    @SerializedName("devType")
    @Expose
    private Integer devType;//
    @SerializedName("geoId")
    @Expose
    private Integer geoId;//
    @SerializedName("uuid")
    @Expose
    private String msgId;//
    @Expose
    private Long fromid;//
    @Expose
    private String fromname;//
    @Expose
    private Integer fromType;//
    @Expose
    private Long destid;//
    @Expose
    private String content = "";//
    @Expose
    private Integer messageType;//
    @Expose
    private Long sendTime;//
    @Expose
    private Long receiveTime;//
    @Expose
    private Integer status;//

    @Expose
    private float userVoiceTime;//
    @Expose
    private String userVoicePath;//语音本地路径//
    @Expose
    private String userVoiceUrl;//语音网络路径//
    @Expose
    private String fileUrl;//文件路径网络路径//
    @Expose
    private String filePath;//文件本地路径//
    @Expose
    private String imageIconUrl;//头像路径//
    @SerializedName("uniqueness")
    @Expose
    private String uniqueness;//唯一（确定聊天人 自己和他人）//
    @Expose
    private int type;//聊天页面里面使用//
    @Expose
    private int sendState;//发送状态 0:发送中;1发送成功;2发送失败//
    @Expose
    private String content_fy;//翻译后的聊天内容,存入json数据，解析使用//
    @Expose
    private boolean isRead ; //是否已读//
    @Expose
    private boolean isPayed ;//是否已支付
    @Expose
    private boolean isklopen = false;//口令红包是否已经拆开（false-0-默认，未拆；true-1-已拆开）

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public boolean isklopen() {
        return isklopen;
    }

    public void setIsklopen(boolean isklopen) {
        this.isklopen = isklopen;
    }

    private String isShowFY = "";//由于目前是关闭聊天再次进入时不需要显示翻译，所以这个标志没存入数据库

    public ImMessage() {

    }

    public ImMessage(Integer devType, Integer geoId, String msgId, Long fromId, Integer fromType, Long destId,
                     String content, Integer messageType, Long sendTime, Long receiveTime, Integer status, String uniqueness) {
        this.devType = devType;
        this.geoId = geoId;
        this.msgId = msgId;
        this.fromid = fromId;
        this.fromType = fromType;
        this.destid = destId;
        this.content = content;
        this.messageType = messageType;
        this.sendTime = sendTime;
        this.receiveTime = receiveTime;
        this.status = status;
        this.uniqueness = uniqueness;
    }

    public boolean isPayed() {
        return isPayed;
    }

    public void setPayed(boolean payed) {
        isPayed = payed;
    }

    public String getIsShowFY() {
        return isShowFY;
    }

    public void setIsShowFY(String isShowFY) {
        this.isShowFY = isShowFY;
    }

    public String getContent_fy() {
        return content_fy;
    }

    public void setContent_fy(String content_fy) {
        this.content_fy = content_fy;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getVersion() {
        return this.version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getDevType() {
        return this.devType;
    }

    public void setDevType(Integer devType) {
        this.devType = devType;
    }

    public Integer getGeoId() {
        return this.geoId;
    }

    public void setGeoId(Integer geoId) {
        this.geoId = geoId;
    }

    public String getMsgId() {
        return this.msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }


    public Integer getFromType() {
        return this.fromType;
    }

    public void setFromType(Integer fromType) {
        this.fromType = fromType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getMessageType() {
        return this.messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public Long getSendTime() {
        return this.sendTime;
    }

    public void setSendTime(Long sendTime) {
        this.sendTime = sendTime;
    }

    public Long getReceiveTime() {
        return this.receiveTime;
    }

    public void setReceiveTime(Long receiveTime) {
        this.receiveTime = receiveTime;
    }

    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public float getUserVoiceTime() {
        return userVoiceTime;
    }

    public void setUserVoiceTime(float userVoiceTime) {
        this.userVoiceTime = userVoiceTime;
    }

    public String getUserVoicePath() {
        return userVoicePath;
    }

    public void setUserVoicePath(String userVoicePath) {
        this.userVoicePath = userVoicePath;
    }

    public String getUserVoiceUrl() {
        return userVoiceUrl;
    }

    public void setUserVoiceUrl(String userVoiceUrl) {
        this.userVoiceUrl = userVoiceUrl;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getImageIconUrl() {
        return imageIconUrl;
    }

    public void setImageIconUrl(String imageIconUrl) {
        this.imageIconUrl = imageIconUrl;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Long getFromid() {
        return fromid;
    }

    public void setFromid(Long fromid) {
        this.fromid = fromid;
    }

    public Long getDestid() {
        return destid;
    }

    public void setDestid(Long destid) {
        this.destid = destid;
    }

    public String getUniqueness() {
        return uniqueness;
    }

    public void setUniqueness(String uniqueness) {
        this.uniqueness = uniqueness;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public int getSendState() {
        return sendState;
    }

    public void setSendState(int sendState) {
        this.sendState = sendState;
    }

    public String getFromname() {
        return fromname;
    }

    public void setFromname(String fromname) {
        this.fromname = fromname;
    }
}
